<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>
    	<spring:message code="head.clothGarment"></spring:message>-
   		<spring:message code="head.userCenter"></spring:message>-
   		<spring:message code="head.helpCenter"></spring:message>
    </title>
    <!--公共样式-->
    <link href="${pageContext.request.contextPath }/web/css/font/iconfont.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/web/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/NormalizeFile.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/public.css" />
    <!--列表页面私有样式-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/subpage/person.css" />
</head>
<body>
<jsp:include page="../main/head.jsp"></jsp:include>
<!--用户中心 begin-->
<div class="contenter mar-t40 font1 mt134" style="padding-top: 30px">
    <div class="f-l left-nav">
        <div class="bor1 xxul">
            <ul>
                <li>
                    <a href="javascript:void(0);" id="memberCenter" name="${pageContext.request.contextPath }/web/help/"><spring:message code="memberCenter"></spring:message></a>
                </li>
                <li>
                    <a href="javascript:void(0);" id="customerService" name="${pageContext.request.contextPath }/web/help/"><spring:message code="contact"></spring:message></a>
                </li>
                <li>
                    <a href="javascript:void(0);" id="copyright" name="${pageContext.request.contextPath }/web/help/"><spring:message code="copyright"></spring:message></a>
                </li>
                <li>
                    <a href="javascript:void(0);" id="copyrightPrice" name="${pageContext.request.contextPath }/web/help/"><spring:message code="price"></spring:message></a>
                </li>
                <li>
                    <a href="javascript:void(0);" id="pattern" name="${pageContext.request.contextPath }/web/help/"><spring:message code="network"></spring:message></a>
                </li>
                <li>
                    <a href="javascript:void(0);" id="vipInfo" name="${pageContext.request.contextPath }/web/help/"><spring:message code="vipExplain"></spring:message></a>
                </li>
            </ul>
        </div>
    </div>
    <div class="f-r right-content">
    	<iframe id="anchor" scrolling="yes" width="968" height="1023" frameborder="0" src=""></iframe>
    </div>
    <div class="clr"></div>
</div>
<!--用户中心 end-->
<jsp:include page="../main/bottom.jsp"></jsp:include>
<!--全局-->
<%-- <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/public.js"></script> --%>
<!--ie789下placeholder不兼容-->
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/placeholder.js"></script>
<script type="text/javascript">
	$(function(){
		//初始化左侧列表点击响应事件
		initFunction();
		//初始化Iframe框架
		initIframe();
		
	});
	
	function initFunction(){
		$(".xxul ul li").click(function () {
			var aObj=$(this).find('a');
		    var arr=[];
		    arr.push(aObj.attr('id'));
		    arr.push($(this).index());
		    var arrString=arr.join('-');
		    window.location.href=aObj.attr('name')+arrString+'/index';
		});
	}
	
	function initIframe(){
		var urlString='${urlString}';
		var indexId='${indexId}';
		//更改页面跳转
		if(urlString!=null&&urlString!=undefined&&urlString!=''){
			$('#anchor').attr('src','${pageContext.request.contextPath }/web/help/'+urlString);
		}
		
		//添加点击后左侧目录样式
		if(indexId!=null&&indexId!=undefined&&indexId!=''){
			$(".xxul ul li").eq(indexId).addClass("active");
		}
	}

</script>
</body>
</html>